<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="UTF-8"/>
<title>运营平台</title>
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta name="renderer" content="webkit">
<!--<meta http-equiv="X-UA-Compatible" content="IE=edge">-->
<link type="text/css" rel="stylesheet" href="<?php echo get_style_cdnurl();?>paimai/yunying/css/common.css?v=20170207" />
<link type="text/css" rel="stylesheet" href="<?php echo get_style_cdnurl();?>paimai/yunying/css/table.css?v=20170117" />
<link type="text/css" rel="stylesheet" href="<?php echo get_style_cdnurl();?>paimai/yunying/css/jquery-ui.css" />
<script src="<?php echo get_style_cdnurl();?>paimai/yunying/js/jquery-1.11.1.js" type="text/javascript"></script>
<script src="<?php echo get_style_cdnurl();?>paimai/yunying/js/jquery-ui.min.js" type="text/javascript"></script>
 <script src="<?php echo get_style_cdnurl();?>paimai/yunying/js/yunIndex.js" type="text/javascript"></script>
<script src="<?php echo get_style_cdnurl();?>paimai/yunying/js/jquery-ym-datePlugin-0.1.js" type="text/javascript"></script>
<script src="<?php echo get_style_cdnurl();?>paimai/yunying/js/global.js" type="text/javascript"></script>
<script src="<?php echo get_style_cdnurl();?>paimai/cheshan/js/common.js" type="text/javascript"></script>
<script type="text/javascript" src="<?php echo get_style_cdnurl();?>paimai/yunying/js/jquery.placeholder.min.js"></script>
<script type="text/javascript">
 $(function(){
     $("input").placeholder();
     if (navigator.userAgent.indexOf("Safari") > -1) {
       $("input").css("lineHeight","normal !important");
     };
});
</script>

<link type="text/css" rel="stylesheet" href="<?php echo get_style_cdnurl();?>paimai/yunying/plugin/select2/select2.css" />
<script src="<?php echo get_style_cdnurl();?>paimai/yunying/plugin/select2/select2.js" type="text/javascript"></script>
<style type="text/css">
    #start_time,#end_time
    ,#confirm_start_time,#confirm_end_time{background: rgba(0, 0, 0, 0) url("http://img4.isou365.cn/paimai/yunying/images/yun_tubiao1.jpg") no-repeat scroll 0 0;border: medium none;cursor: pointer;font-size: 12px; padding-right: 28px;text-align: center;width: 88px;}
</style>
<body>
<div class="header">
<div class="headerCo">
<span>你好,<?php echo ($user_info["real_name"]); ?><a href="<?php echo (WEB_URL); ?>Emp/logout">退出</a></span>
<h1><img src="<?php echo get_style_cdnurl();?>paimai/yunying/images/yun_logo.jpg"></h1>
</div>
</div>
<div class="mian">
    <div class="mianL">
    <dl>
        <dd>
            <a id="menu_sy" href="/Index/index" class="shouye">首页</a>
        </dd>
        <?php foreach ($tree_menu as $key => $value): ?>
          <dd>
            <span id="menu_<?php echo ($value['first_char']); ?>" ><img src="<?php echo get_style_cdnurl();?>paimai/yunying/images/yun_jia.jpg"><?php echo ($value['name']); ?></span>
            <ul style="display: none;">
                <?php if (!empty($value['children'])): ?>
                    <?php foreach ($value['children'] as $k => $v): ?>
                        <li><a id='menu_<?php echo ($v["first_char"]); ?>' href="<?php echo ($v['url']); ?>"><?php echo ($v['name']); ?></a></li>
                    <?php endforeach ?>
                <?php endif ?>
            </ul>
        <?php endforeach ?>
    </dl>
</div>

<?php $menu = 'cjgl.ptqr'; ?>
<?php $menu=json_encode(explode('.', $menu)); ?>
<script>
    $(function () {
        var cur_menu = '<?php echo ($menu); ?>', cur_menu = eval('[' + cur_menu + ']'), cur_menu = cur_menu[0];
        if (cur_menu == "sy") {
            $("#menu_sy").removeClass('shouye').addClass('current');
        }
        $('#menu_' + cur_menu[0]).click();
        $('#menu_' + cur_menu[0]).find("img").attr("src", "http://img1.isou365.cn/paimai/yunying/images/yun_jie.jpg");
        $(".mianL").css("height", $(document).height() - 95);
        $('#menu_' + cur_menu[1]).addClass('current');
    });
</script>
    <div class="mianR">
        <div class="yuyue">
            <ul>
                <li onclick="change_search(0);get_list(0);" class="yuCurrent">待确认</li>
                <li onclick="change_search(1);get_list(1);">跟踪中</li>
                <li onclick="change_search(3);get_list(3);">确认成功</li>
                <li onclick="change_search(5);get_list(5);">确认失败</li>
            </ul>
            <input type="hidden" name="status" value="0" />
        </div>
        <div class="yuSuo clearfix" style="float:left;">
            <form id="searchFrom">
                <input id="status" name="status" type="hidden" value="<?php echo ($params["status"]); ?>"/>
                <div id="search1" style="margin-right: 10px;float:left;">
                    <input type="text" id="start_time" name="trace_start_time" value="<?php echo ($params["trace_start_time"]); ?>" placeholder="跟踪时间" readonly /><em></em>
                    <input type="text" id="end_time" name="trace_end_time" value="<?php echo ($params["trace_end_time"]); ?>" placeholder="跟踪时间" readonly />
                </div>
                <div id="search2">
                    <input type="text" id="confirm_start_time" name="confirm_start_time" value="<?php echo ($params["confirm_start_time"]); ?>" placeholder="确认时间" readonly /><em></em>
                    <input type="text" id="confirm_end_time" name="confirm_end_time" value="<?php echo ($params["confirm_end_time"]); ?>" placeholder="确认时间" readonly />
                </div>
                <div class="zhuang-tai">
                    <select id="location_area" name="location_area" class="branch_company">
                        <?php if(count($bc_city) > 1): ?><option value="">请选择所在地</option><?php endif; ?>
                        <?php if(is_array($bc_city)): $i = 0; $__LIST__ = $bc_city;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$city): $mod = ($i % 2 );++$i;?><option value="<?php echo ($key); ?>"><?php echo ($city); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
                    </select>
                </div>

                <input type="text" name="order_no" value="<?php echo ($params["order_no"]); ?>"  placeholder="拍卖单号"  class="suoDian suoDian1">
                <input type="button" onclick="search();" value="搜索" class="suoSou" style="width:80px;">
            </form>
        </div>
        <div class="listBox" id="listBox">

        </div>
        <div class="clear"></div>
    </div>
</div>
<script type="text/javascript">
    $("#start_time").ymdateplugin({
        changeMonth: true,
        changeYear: true
    });

    $("#end_time").ymdateplugin({
        changeMonth: true,
        changeYear: true
    });
    $("#confirm_start_time").ymdateplugin({
//            showTimePanel: true,
//            changeMonth: true,
//            changeYear: true
    });
    $("#confirm_end_time").ymdateplugin({
//            showTimePanel: true,
//            changeMonth: true,
//            changeYear: true
    });
    get_list(0);
    function get_list(status) {
        $('input[name=status]').val(status);
        $.get("/AuOrder/platform_confirm_list", {"status": status}, function (data) {
            $("#listBox").html(data);
        }, "html");
    }

    function get_page(p) {
        var get_params = $("#searchFrom").serialize()+"&p="+p;
        $.get("/AuOrder/platform_confirm_list", get_params, function (data) {
            $("#listBox").html(data);
        }, "html");
    }

    function is_assigned(order_id) {
        var param = {'order_id': order_id, 'type': 'platform_confirm'};
        $.get("/AuOrder/is_order_assigned", param, function (data) {
            if (data.code == '526') {
                shibai_alert(data.msg, 2000, function () {
                    window.location.reload()
                });
            } else if (data.code != '200') {
                //发生异常
                shibai_alert(data.msg, 2000, function () {
                    window.location.reload()
                });
            } else {
                window.location.href = '/AuOrder/platform_confirm_detail/order_id/' + order_id
            }
        }, "json");
    }
    function send_sms(order_id, owner_id, obj) {
        var param = {
            'order_id': order_id,
            'owner_id': owner_id
        };
        $.get("/AuOrder/send_sms", param, function (data) {
            if (data.code == '200') {
                btn_alert(data.msg, 2, function () {
                    window.location.reload()
                });
            } else {
                shibai_alert(data.msg);
            }
        }, "json");
    }
    function search() {
        $.get("/AuOrder/platform_confirm_list", $("#searchFrom").serialize(), function (data) {
            $("#listBox").html(data);
        }, "html");
    }

    $("#search1").hide();
    $("#search2").hide();
    function change_search(st) {
        var s1 = $("#search1"), s2 = $("#search2"), s3 = $("#search3");
        if (st == 0 || st == 2 || st == 5) {
            clear_params();
            s1.hide();
            s2.hide();
            s3.show();
        }
        if (st == 1) {
            clear_params();
            s1.show();
            s2.hide();
        }
        if (st == 3 || st == 4) {
            clear_params();
            s1.hide();
            s2.show();
        }
        if (st == 1 || st == 3 || st == 4) {
            clear_params();
            s3.show();
        }
    }

    function clear_params() {
        $("#order_no").val("");
        $("#start_time,#confirm_start_time").val("");
        $("#end_time,#confirm_end_time").val("");
    }
</script>
<div class="yunBei"></div>
<div class="loading"></div>
</body>
</html>